import request from '/@/utils/request'
// 查询文章分类列表
export function listAppNewsCategory(query:object) {
  return request({
    url: '/api/v1/app/appNewsCategory/list',
    method: 'get',
    params: query
  })
}
// 查询文章分类详细
export function getAppNewsCategory(id:number) {
  return request({
    url: '/api/v1/app/appNewsCategory/get',
    method: 'get',
    params: {
      id: id.toString()
    }
  })
}
// 新增文章分类
export function addAppNewsCategory(data:object) {
  return request({
    url: '/api/v1/app/appNewsCategory/add',
    method: 'post',
    data: data
  })
}
// 修改文章分类
export function updateAppNewsCategory(data:object) {
  return request({
    url: '/api/v1/app/appNewsCategory/edit',
    method: 'put',
    data: data
  })
}
// 删除文章分类
export function delAppNewsCategory(ids:number[]) {
  return request({
    url: '/api/v1/app/appNewsCategory/delete',
    method: 'delete',
    data:{
      ids:ids
    }
  })
}
